/*
 * @Descripttion: 
 * @version: 1.0.0
 * @Author: YinJianFeng
 * @Date: 2024-03-22 11:02:19
 */
export const Constants = {
  CORE_ENGINE: 'CORE_ENGINE'
}

// 功能按键
export const KEYBOARD_KEY = {
  ENTER: 'Enter',
  ESC: 'Escape',
  TAB: 'Tab',
  SPACE: ' ',
  CTRL: 'Control',
  ALT: 'Alt',
  DELETE: 'Delete',
  SHIFT: 'Shift',
  CONTROL: 'Control',
  ARROWLEFT: 'ArrowLeft',
  ARROWRIGHT: 'ArrowRight',
  ARROWUP: 'ArrowUp',
  ARROWDOWN: 'ArrowDown',
  BACKSPACE: 'Backspace'
}

export const preventKeys = [
  'F5',
  'Tab',
  'Shift',
]

/**
 * @param key 键值
 * @returns boolean，是否输入了数字
 */
export function isNumKey(key: string) {
  return !isNaN(parseInt(key))
}